﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 商场收银系统v2._0简单工厂
{
    public class CashRebate : CashSuper
    {
        private double _Rebate = 0.0d;

        public CashRebate(double Rebate)
        {
            _Rebate = Rebate;
        }

        public override double Payment(double money)
        {
            return money * _Rebate;
        }
    }
}
